<!-- 砸金蛋中奖弹窗 -->
<template>
	<view class="regret-child" v-if="show">
		<view class="mask pa" @tap="close" />
		<view class="content pa">
			<view class="prise_content pa">
				<view class="prise_level">{{prizeName}}</view>
			</view>
			
			<image :src="congratulations" mode="" />
			<view class="text pa">恭喜中奖啦!</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			show: {
				type: Boolean,
				default: false
			},
			prizeName: {
				type: String,
				default: ''
			}
		},
		data() {
			return {
				congratulations: this.imgUrl + 'congratulations_zjd.png'
			}
		},
		
		methods: {
			close() {
				this.$emit('close')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.regret-child {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 998;
		display: flex;
		justify-content: center;
		align-items: center;
	
		.mask {
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			z-index: 998;
			background-color: rgba($color: #000000, $alpha: 0.7);
		}
		.content {
			z-index: 999;
			text-align: center;
			.prise_content {
				color: #F08537;
				top: 215rpx;
				left: 0;
				right: 0;
				.prise_level {
					font-size: 58rpx;
					font-weight: 700;
				}
				
				.prise_name {
					font-size: 26rpx;
				}
			}
			image {
				width: 670rpx;
				height: 714rpx;
			}
			
			.text {
				color: #FFF;
				font-size: 46rpx;
				bottom: 116rpx;
				left: 226rpx;
			}
		}
	}
</style>